<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加地区</title>
<script type="text/javascript" language="javaScript">
</script>
</head>
<body>
	<html:form action="/address/manage" method="post">
		<html:hidden property="parentId" value="${requestScope.address.parent.addressId}"/>
		<c:if test="${!empty requestScope.address_name_null }">
			<font color="red">${requestScope.address_name_null }</font>
			<br/>
		</c:if>
		<c:if test="${!empty requestScope.addressid_null }">
			<font color="red">${requestScope.addressid_null }</font>
			<br/>
		</c:if>
		地区名字:<input type="text" name="name" value="${requestScope.address.name}"/><input type="text" name="parent" readonly="readonly" value="${requestScope.address.parent.name}"/><input type="button" value="选择..." onClick="window.open('<html:rewrite action="/address/manage"/>?method=selectUI','列表','height=600,width=400,scrollbars=yes,status =yes')"/><br/>
		<c:if test="${empty requestScope.address}">
			<input type="hidden" name="method" value="add"/>
			<input type="submit" value="添加" />
		</c:if>
		<c:if test="${!empty requestScope.address}">
			<input type="hidden" name="method" value="edit"/>
			<input type="hidden" name="adderssId" value="${requestScope.address.addressId}" />
			<input type="submit" value="修改" />
		</c:if>
		
		&nbsp;&nbsp;&nbsp;&nbsp;<a href="<html:rewrite action="/address/list"/>">前往址列表</a>
	</html:form>
</body>
</html>